package org.de.maeyer.statistic;

import java.util.Collection;

/**
 * @author Peter De Maeyer
 */
public class OtherObjectCategory extends ObjectCategory {
	
	private static final String OTHER_VALUE = new String("Other");
	
	private final Collection<Object> categoryValues;
	
	public OtherObjectCategory(Collection<Object> categoryValues, long count) {
		super(OTHER_VALUE, count);
		this.categoryValues = categoryValues;
	}
	
	@Override
	public boolean contains(Object value) {
	    return !categoryValues.contains(value);
	}
}
